<?php

namespace App\VO\UserCoupon\MetaInfo;

use App\Entities\CouponCodeModel;
use App\VO\BaseSearchInfoTrait;

class UserCouponSearchInfo
{
    use BaseSearchInfoTrait;

    /**
     * @var int
     */
    public $userId;

    /**
     * 是否已经使用
     * @var int
     */
    public $used = CouponCodeModel::COUPON_UNUSED;

    /**
     * 是否过期
     * @var int
     */
    public $expired = 0;

    /**
     * @return int
     */
    public function getUserId(): int
    {
        return $this->userId;
    }

    /**
     * @param int $userId
     */
    public function setUserId(int $userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return int
     */
    public function getUsed(): int
    {
        return $this->used;
    }

    /**
     * @return int
     */
    public function getExpired(): int
    {
        return $this->expired;
    }
}
